package com.example.abc.websocket.msg;

import java.sql.Timestamp;

/**
 * Created by Peter on 2018/5/6.
 */
public class WsBaseMessage {
    private String type = "message";//websocket 规范必须只有此字段
    private Object data;

    public WsBaseMessage() {
    }

    public WsBaseMessage(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
